package com.xz.spi.proxy;

import com.xz.simplerpc.api.HelloService;

/**
 * Created by fingal on 2018/1/7.
 */
public class HelloServiceProxy implements HelloService {

    private HelloService helloService;

    public HelloServiceProxy(HelloService helloService) {
        this.helloService = helloService;
    }

    @Override
    public String hello(String name) {
        System.out.println("before say hello....");
        String value = "hello " + name;
        System.out.println(value);
        System.out.println("after say hello...");
        return value;
    }
}
